-
Notifications
You must be signed in to change notification settings - Fork 0
IAU Price Feed #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds a new Pyth price feed for iShares Gold Trust (Equity.US.IAU/USD): two constants (ID and symbol IntOrAString) and a getPriceFeedId branch; tests updated/added to cover the new constant, mapping, and price retrieval. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller as Contract/Test
participant LibPyth as LibPyth.getPriceFeedId
note over LibPyth `#E8F0FF`: Symbol-to-ID lookup (extended)
Caller->>LibPyth: request ID for symbol (IntOrAString)
alt matches Equity.US.IAU/USD
LibPyth-->>Caller: PRICE_FEED_ID_EQUITY_US_IAU_USD
else matches other known symbol
LibPyth-->>Caller: corresponding PRICE_FEED_ID_*
else unknown
LibPyth-->>Caller: revert / not found
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Motivation
IAU Price Feed
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit
New Features
Tests